<?='<?xml version="1.0" encoding="UTF-8"?>'?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<?foreach ($this->docs as $doc):?>
<url>
    <loc><?=$modx->config['site_url']?>[~<?=$doc->id?>~]</loc>
    <lastmod><?=date("Y-m-d",$doc->editedon)?></lastmod>
</url>
<?endforeach;?>
<?foreach ($this->post as $doc):?>
<url>
    <loc><?=$modx->config['site_url']?>forum/topic/<?=$doc->id?></loc>
    <lastmod><?=date("Y-m-d",$doc->last_comment)?></lastmod>
</url>
<?endforeach;?>
</urlset>